#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/environment'

world = World.create()
(1..10000).each do |zone_num|
  if rand() <= 0.33
    Zone.create(:zone_type => 'forest', :zone_num => zone_num, :world_id => world.id)
  else
    zone = Zone.create(:zone_type => 'city', :zone_num => zone_num, :world_id => world.id)
    (1..7).each do |city_num|
      city = City.create(:city_num => city_num, :zone_id => zone.id)
      (1..16).each do |plot_num|
        plot = Plot.create(:plot_num => plot_num, :city_id => city.id)
      end
    end
  end
end